import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { BaseEntity } from "./base.entity";

@Entity({ name: 'UserLittleThings' })
export default class UserLittleThingsEntity extends BaseEntity {
  @PrimaryGeneratedColumn()
  SysID: number;

  @Column({ type: 'bigint'})
  BaseSysID: number;

  @Column({ type: 'bigint'})
  UserSysID: number;

  @Column({ type: 'varchar', length: 50 })
  ThingName: string;

  @Column({ type: 'varchar', length: 255 })
  ImageUrl: string;

  @Column({ type: 'varchar', length: 255 })
  ThingContent: string;

  /**
   * 0为编辑1已编辑
   */
  @Column({ type: 'int' })
  Edited: number;

  /**
   * 0未完成1已完成
   */
  @Column({ type: 'int' })
  IsCompleted: number;
}